import httpInstance from "@/utils/axios.js";

//获得新闻信息
export function getNews(){
    return httpInstance.get('/news/showNews')
}

//新增新闻信息
export function addNews(data){
    return httpInstance.post('/news/addNews',data)
}

//修改新闻
export function updateNews(data){
    return httpInstance.put('/news/updateNews',data)
}

//删除新闻
export function deleteNews(data){
    return httpInstance.delete('/news/deleteNews',data)
}
